package cn.yza.设计模式.装饰者模式.eg1;

/**具体装饰者角色 品质装饰者
 *  动态地添加职责的对象。
 * @author Honglixi
 * @create 2021-11-02 13:34
 */
public class QualityDecoratorImpl extends AttachedPropertiesDecorator{
    private String quality = "有好品质";

    public QualityDecoratorImpl(Man man) {
        super(man);
    }

    public void addQuality() {
        System.out.print(quality + " ");
    }

    @Override
    public void getManDesc() {
        super.getManDesc();
    }
}